import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

import emp.java.poo.employee;

class se{
	public static void main(String [] args)
	{
		employee e = new employee();
		e.name = "jack Sparrow";
		e.address = "Felighht,Bangalore";
		e.SSN = 11122333;
		e.number = 101;
		
		try{
			FileOutputStream fileOut = new FileOutputStream("F:\\text\\text.txt");
			ObjectOutputStream  out = new ObjectOutputStream(fileOut);
			out.writeObject(e);
			fileOut.close();
		}
		
		catch(IOException i)
		{
			i.printStackTrace();
		}
		System.out.println("serialization done");
	}
}